package net.mgsx.product.t2m.modisco.testability;
import java.util.Collection;

import org.eclipse.gmt.modisco.infra.query.core.exception.ModelQueryExecutionException;
import org.eclipse.gmt.modisco.infra.query.core.java.IJavaModelQuery;
import org.eclipse.gmt.modisco.infra.query.core.java.ParameterValueList;
import org.eclipse.gmt.modisco.java.AbstractTypeDeclaration;
import org.eclipse.gmt.modisco.java.ClassDeclaration;

public class GetMockableDependencies implements IJavaModelQuery<ClassDeclaration, Collection<AbstractTypeDeclaration>> {
	public Collection<AbstractTypeDeclaration> evaluate(final ClassDeclaration context, final ParameterValueList parameterValues)
			throws ModelQueryExecutionException {
		
		MockAnalysis analyser = new MockAnalysis();
		analyser.analyse(context);
		return analyser.getMockableDependencies();
	}
}
